export const CollApsedReducer = (prevState = { isCollapsed: false }, action) => {
  console.log(action)
  let { type } = action

  switch (type) {
    case "change_collapsed":
      let newstate = { ...prevState }
      newstate.isCollapsed = !newstate.isCollapsed
      return newstate
    default:
      return prevState
  }
}